<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ice="http://www.icesoft.com/icefaces/component">
    <composite:interface>
        <composite:attribute name="questionnaire" required="true" />
        <composite:attribute name="supprimer" required="true" method-signature="java.lang.String suppr()"/>
        <composite:attribute name="target" type="entite.QuestionnaireQuestion"/>
       
    </composite:interface>
    <composite:implementation>

        <ice:panelPositioned var="qq" rendered="#{questionnaireController.questionnaire.questionnaireQuestionCollection != null}"
                             value="#{questionnaireController.questionnaire.questionnaireQuestionCollection}"
                             styleClass="positionPanelContainer"
                             listener="#{questionnaireController.changerOrdreQuestions}"
                             constraint="vertical">
            <ice:panelGroup style="cursor:move;" styleClass="container">
                <ice:panelGroup styleClass="moveLabel"
                                style="border: 4px red;height: 20px;">
                   
                    <ice:outputText id="name" value="#{qq.question.libelle}"/>
                    <ice:commandButton style="float: right" image="/resources/images/icone_supprimer.png" alt="Supprimer la question"
                                       action="#{questionnaireController.suppr}" value="Suppr">
                        <f:setPropertyActionListener target="#{questionnaireController.questionSuppr}" value="#{qq}" />
                    </ice:commandButton>
                </ice:panelGroup>
            </ice:panelGroup>
        </ice:panelPositioned>
    </composite:implementation>

</html>

